//
//  playViewController.h
//  A段项目音乐播放
//
//  Created by dllo on 15/5/22.
//  Copyright (c) 2015年 lanou3g.com蓝鸥科技. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "AudioStreamer.h"

typedef NS_ENUM(NSInteger, PlayWithWay)
{
    PlayWithWayCirculation,  //循环
    PlayWithWayRandom,   //随机
    PlayWithWaySole   // 唯一
};

@protocol SmailWindowDisappearDelegate <NSObject>

- (void)sendState:(BOOL)state;

@end


@interface playViewController : UIViewController
@property (nonatomic, retain)UITableView *songListTableview;  //歌曲列表
@property (nonatomic, retain)UITableView *lyricListTableView;
@property (nonatomic, retain)UIImageView *myImageview;
@property (nonatomic, retain)NSMutableArray *lyricArray;
@property (nonatomic, assign)NSInteger tag;
@property (nonatomic, assign)id delegate;
@property (nonatomic, retain)UIScrollView *playScroll;
@property (nonatomic, retain)UIScrollView *picutureScroll;

@property (nonatomic, retain)UISlider *mySlider;
@property (nonatomic, retain)NSTimer *myTime;
@property (nonatomic, retain)NSURL *playingUrl;
@property (nonatomic, assign)PlayWithWay playState;
@property (nonatomic, retain)UIImageView *image;
@property (nonatomic, retain)UIView *playview;
//@property (nonatomic, assign)id <playWindowDelegate>delegate;
@property (nonatomic, retain)AudioStreamer *audio;

@property (nonatomic, assign)NSString *songname;
@property (nonatomic, assign)NSString *songid;
@property (nonatomic, assign)NSString *songaddress;
@property (nonatomic, assign)NSString *singername;
@property (nonatomic, assign)NSInteger num;
@property (nonatomic, retain)NSMutableArray *playModelArray;
@property (nonatomic, retain)UIView *mengban;
@property (nonatomic, retain)UIButton *playButton;
@property (nonatomic, retain)UIButton *nextBButton;
@property (nonatomic, retain)UIButton *lastbutton;
@property (nonatomic, retain)UIButton *xunhuanButton;
@property (nonatomic, retain)CIContext *myContext;

@property (nonatomic, strong) UISwipeGestureRecognizer *rightSwipeGestureRecognizer;

@property (nonatomic, retain)UIButton *xiangbutton;



+ (playViewController *)shareStateOfViewcontroller;
- (void)musicPlay;
- (void)nextButton;
- (void)playWithModel:(NSMutableArray *)modelArray index:(NSInteger)index;
- (void)requestLyricNet;
@end
